<?php
/**
 * Created by PhpStorm.
 * User: cz
 * Date: 2017/4/17
 * Time: 13:52
 */
 namespace Common\Model;
 use Think\Model;
 class UserLoginModel extends Model{
     public function getLogin( $uesrname = ""){
        if(empty($uesrname)){
            return;
        }
        $userLogin = M("UserLogin");
       $res = $userLogin->where("user_name = '".$uesrname."' AND status = 0")-> find();
       return $res;
     }
 }